/**
 * @author yuliang
 *
 */
package com.xuhai.libms.service.impl;

import java.util.List;

import com.xuhai.libms.dao.BookTypeDao;
import com.xuhai.libms.entity.BookType;
import com.xuhai.libms.exception.RemoveException;
import com.xuhai.libms.service.BookTypeService;

public class BookTypeServiceImpl implements BookTypeService{
	
	private BookTypeDao bookTypeDao;
	
	public BookTypeDao getBookTypeDao() {
		return bookTypeDao;
	}


	public void setBookTypeDao(BookTypeDao bookTypeDao) {
		this.bookTypeDao = bookTypeDao;
	}


	public BookTypeServiceImpl(){
	}
	
	
	public void modify(BookType bookType){
		bookTypeDao.modify(bookType);
	}
	
	public void remove(BookType bookType)throws RemoveException{
		bookTypeDao.remove(bookType);
	}
	
	public BookType show(int id){
		return (BookType)bookTypeDao.show(id);
	}

	public void add(BookType bookType) {
		bookTypeDao.insert(bookType);
	}

	public List show() {
		return bookTypeDao.show();
	}

	public List showByPage(BookType bookType,int start, int max) {
		return bookTypeDao.showByPage(bookType,start, max);
	}


	public List showByPid(int p_id) {
		return bookTypeDao.showByPid(p_id);
	}


	public int getSize(BookType bookType) {
		return bookTypeDao.getSize(bookType);
	}
	
}
